package com.meiqia.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 用户余额
 * </p>
 *
 * @author lightman
 * @since 2020-12-08
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("t_balance")
public class Balance implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 所属用户
     */
    @TableId("user_id")
    private Long userId;

    /**
     * 余额值
     */
    @TableField("amounts")
    private BigDecimal amounts;

    /**
     * 余额变动校验码
     */
    @TableField("checksum")
    private String checksum;

    /**
     * 锁定资金账户 1:true 0:false
     */
    @TableField("locked")
    private Integer locked;


}
